package com.akkainaction.mailbox.custommailbox;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.akkainaction.mailbox.custommailbox.actor.BusinessActor;
import com.typesafe.config.ConfigFactory;

public class TestBusinessMailboxType {

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys", ConfigFactory.load("custom-mailbox.conf"));
        ActorRef businessActor = system.actorOf(Props.create(BusinessActor.class).withMailbox("business-mailbox"), "businessActor");
        businessActor.tell("张三", ActorRef.noSender());
    }
}
